package com.jm.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jm.dao.SetmealToyMapper;
import com.jm.pojo.Setmeal;
import com.jm.pojo.SetmealToy;
import com.jm.service.SetmealToyService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealToyServiceImpl extends ServiceImpl<SetmealToyMapper, SetmealToy> implements SetmealToyService {


    @Override
    public List<SetmealToy> getToysBySetmealId(Long setmealId) {
        LambdaQueryWrapper<SetmealToy> qw=new LambdaQueryWrapper<SetmealToy>();
        qw.eq(true, SetmealToy::getSetmealId,setmealId);
        return list(qw);
    }
}
